#include <stdio.h>

/**
*@Author: Taoke
*@CreateTime: 2025-3
*@Version: 1.0
*/

int main()
{
	int a;
	int b = 0;
	printf("请输入数值：");
	scanf_s("%d", &a);
	while (a != 0)
	{
		b = b * 10 + a % 10;
		a = a / 10;
	}
	printf("%d", b);

	return 0;
}